from django.db import models

class User(models.Model):
	name = models.CharField('User name', max_length=100)
	def __unicode__(self):
		return self.name

class Course(models.Model):
	name = models.CharField('Course name', max_length=50)
	teacher = models.ForeignKey(User)
	def __unicode__(self):
		return self.name

class Meeting(models.Model):
	date = models.DateTimeField("Meeting's date")
	course = models.ForeignKey(Course)
	student = models.ForeignKey(User)
